$OpenBSD: patch-Makefile_in,v 1.3 2016/12/13 02:47:01 juanfra Exp $
--- Makefile.in.orig	Thu Dec  1 21:43:59 2016
+++ Makefile.in	Tue Dec 13 02:42:31 2016
@@ -3,7 +3,7 @@ exec_prefix     = @exec_prefix@
 BINDIR          = @bindir@
 LIBDIR          = @libdir@
 DATADIR         = $(prefix)/share
-MANDIR          = $(DATADIR)/man
+MANDIR          = $(prefix)/man
 STRIP           = @STRIP@
 CC              = @CC@
 RANLIB          = @RANLIB@
@@ -31,19 +31,19 @@ install :
 	$(INSTALL) build/bacon $(DESTDIR)$(BINDIR)
 	@if [ $(GUI) = "true" ]; then \
 	    $(INSTALL) build/bacongui $(DESTDIR)$(BINDIR); \
+	    mkdir -p $(DESTDIR)$(DATADIR)/applications; \
+	    $(INSTALL) -m 644 bacongui.desktop $(DESTDIR)$(DATADIR)/applications; \
+	    mkdir -p $(DESTDIR)$(DATADIR)/pixmaps; \
+	    $(INSTALL) -m 644 icons/BaCon.png $(DESTDIR)$(DATADIR)/pixmaps; \
+	    $(INSTALL) -m 644 icons/BaCon24.png $(DESTDIR)$(DATADIR)/pixmaps; \
 	fi;
 	$(INSTALL) bacon.sh $(DESTDIR)$(BINDIR)
 	mkdir -p $(DESTDIR)$(LIBDIR)
 	$(INSTALL) -m 644 build/libbacon.a $(DESTDIR)$(LIBDIR)
 	mkdir -p $(DESTDIR)$(MANDIR)/man1
 	$(INSTALL) -m 644 bacon.1 $(DESTDIR)$(MANDIR)/man1
-	mkdir -p $(DESTDIR)$(DATADIR)/applications
-	$(INSTALL) -m 644 bacongui.desktop $(DESTDIR)$(DATADIR)/applications
-	mkdir -p $(DESTDIR)$(DATADIR)/pixmaps
-	$(INSTALL) -m 644 icons/BaCon.png $(DESTDIR)$(DATADIR)/pixmaps
-	$(INSTALL) -m 644 icons/BaCon24.png $(DESTDIR)$(DATADIR)/pixmaps
-	mkdir -p $(DESTDIR)/usr/share/enscript/hl
-	$(INSTALL) -m 644 syntax/bacon.st $(DESTDIR)/usr/share/enscript/hl
+	mkdir -p $(DESTDIR)$(DATADIR)/enscript/hl
+	$(INSTALL) -m 644 syntax/bacon.st $(DESTDIR)$(DATADIR)/enscript/hl
 
 uninstall :
 	rm -f $(DESTDIR)$(BINDIR)/bacon
